package org.fuys.coder.domain.favorites.service;

import org.fuys.coder.common.entity.Pair;
import org.fuys.coder.common.entity.PageDTO;
import org.fuys.coder.domain.favorites.model.vo.FavoritesIntroVO;

import java.util.List;

/**
 * @projectName: fuys-low-coder
 * @package: org.fuys.coder.domain.favorites.service
 * @className: IFavoriteService
 * @author: WangJing
 * @description: 收藏服务
 * @date: 2024/9/3 15:05
 * @version: 1.0
 */
public interface IFavoriteService {
    public long createNewEmptyFavorite();

    public boolean saveRecord(Integer userId,Long favoriteId);

    public boolean checkBelong(Integer userId,Long favId);

    Pair<List<Long>, Long> selectPageByFavId(Long favId, PageDTO pageDTO);

    List<FavoritesIntroVO> selectFavInfo(List<Long> ids, boolean equals);
}
